package main

import (
	"fmt"

	"gin_test/routers"
	_ "github.com/gin-gonic/gin"
)

func main() {
	// fmt.Println("开启gin web!")
	// r := gin.Default()
	// r.GET("/ping", func(c *gin.Context) {
	// 	c.JSON(200, gin.H{
	// 		"message": "pong",
	// 	})
	// })
	// r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")

	r := routers.SetupRouter()
	if err := r.Run(); err != nil {
		fmt.Println("err:%v\n", err)
	}
}
